home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-03-02 | 1.3 KB | 31 lines | [TEXT/GEOL] |
- Item 1036007 28-Feb-90 19:16PST
-
- From: ROSENSTEIN1 Rosenstein, Larry
-
- To: D0234 Addison Wesley, Schl Dev Suppt,PRT
-
- cc: MACAPP.TECH$ MacApp Technical
-
- Sub: Re: Standard PICT File
-
- It is very easy to read a PICT file. The simplest approach is to just skp the
- first 512 bytes, read the rest of the file into a big handle, and treat the
- handle as a normal QuickDraw picture.
-
- The only drawback is that you need enought RAM space to hold the entire PICT
- file. The solution is to read the picture incrementally from disk. This
- involves installing QuickDraw capture procs that read bytes of the picture from
- disk as QuickDraw needs them.
-
- It turns out that reading pictures in this way is very easy. Tech Note 154
- shows how to do it, althought it isn't written as a class. The only change I
- would make from that code is to buffer reads from the PICT file to improve
- performance. (Something like a 32K-64K buffer should do the trick.)
-
- I have implemented a class that does this, but I'm not sure if it works with
- MacApp 2.0, and I would want to have DTS look at it to ensure that it is OK.
- Using the Tech Note, however, it should be easy to roll your own.
-
- Larry Rosenstein
-
-